define(["app/utils/HttpClientUtils"],function (hc) {

	
	return {
		
		updateLectureOrder: function(lectureId,num, callback_Func){

			var url = $.wjtBaseBackend + "/wjt/room_update";
			var body = {
				"id": lectureId,
				"num": num
			};
		
			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);
		},
		uploadLecture: function(roomuuid,pageurl,type,num,unionid,thumburl,callback_Func){

			var url = $.wjtBaseBackend + "/wjt/lecture_page_create";
			var body = {
				"roomuuid": roomuuid,
				"pageurl": pageurl,
				"type": type,
				"num" : num,
				"unionid" : unionid,
				"thumburl" : thumburl
			};

			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);

		},
		deleteLecturePage: function(lectureId, callback_Func){

			var url = $.wjtBaseBackend + "/wjt/lecture_page_delete";
			var body = {
				"id": lectureId
			};

			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);

		},
		listAppLectureByUnionid: function(unionid, callback_Func){
			var url = $.wjtBaseBackend + "/wjt/lecture_app_list";
			var body = {
				"unionid": unionid
			};

			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);
			
		},
		listLectureByUnionid: function(unionid, callback_Func){

			var url = $.wjtBaseBackend + "/wjt/lecture_list";
			var body = {
				"unionid": unionid
			};

			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);

		},
		uploadPPT: function(key,roomuuid,total, callback_Func){

			var url = $.wjtBaseBackend + "/wjt/img_create";
			var body = {
				"roomuuid": roomuuid,
				"key":key,
				"page_total": total
			};

			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);

		},

		uploadTube: function(roomuuid,pageurl, callback_Func){

			var url = $.wjtBaseBackend + "/wjt/app/app_upload_tube";
			var body = {
				"roomuuid": roomuuid,
				"pageurl":pageurl
			};

			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);

		},
		getPPTpageCount: function(key, callback_Func){

			var url = $.wjtBaseBackend + "/wjt/ppt_page_count";
			var body = {
				"key":key
			};

			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);


		}



		
	};

});
